package com.cqjtu.tto.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@ApiModel(value = "监控记录前端模型")
public class ScreenshotRecordVo {
    /**
     * 截屏id
     */
    private Long screenshotId;

    /**
     * 用户名
     */
    private String name;

    /**
     * 截屏时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private LocalDateTime screenshotTime;

    /**
     * 图片
     */
    private String base64;

    public ScreenshotRecordVo() {
    }

    public ScreenshotRecordVo(Long screenshotId, String name, LocalDateTime screenshotTime, String base64) {
        this.screenshotId = screenshotId;
        this.name = name;
        this.screenshotTime = screenshotTime;
        this.base64 = base64;
    }
}
